import App from './App'
import uviewPlus from '@/uni_modules/uview-plus'
import { createSSRApp } from 'vue'
import Vuex from 'vuex';
import store from './store';
import config from './common/config';
import {
	initRequest
} from './utils/request/index'

export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
  app.use(store)
  app.config.globalProperties.$imgurl = config.imgUrl+'statics';
  // 引入请求封装
  initRequest(app)
  return {
    app
  }
}
